package com.qyer.lxp.model.book.parameter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * 配送根据预订限制接口来决定是否需要此节点
 * Created by jiangping on 16/7/1.
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Delivery implements Serializable{
    private static final long serialVersionUID = 5226718909081730222L;

    /**
     * 配送方式(从预订限制接口获取配送方式列表选择其一)
     */
    private String mode;

    /**
     * 收件人
     */
    private String receiver;

    /**
     * 收件人电话
     */
    private String phone;

    /**
     * 地址
     */
    private String address;

    /**
     * 邮编
     */
    private String postcode;

    /**
     * 是否需要发票
     */
    @XmlElement(name = "need-invoice")
    private String needInvoice;

    /**
     * 发票抬头
     */
    @XmlElement(name = "invoice-info")
    private String invoiceInfo;

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getNeedInvoice() {
        return needInvoice;
    }

    public void setNeedInvoice(String needInvoice) {
        this.needInvoice = needInvoice;
    }

    public String getInvoiceInfo() {
        return invoiceInfo;
    }

    public void setInvoiceInfo(String invoiceInfo) {
        this.invoiceInfo = invoiceInfo;
    }

    @Override
    public String toString() {
        return "Delivery{" +
                "mode='" + mode + '\'' +
                ", receiver='" + receiver + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", postcode='" + postcode + '\'' +
                ", needInvoice='" + needInvoice + '\'' +
                ", invoiceInfo='" + invoiceInfo + '\'' +
                '}';
    }
}
